<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:t="http://myfaces.apache.org/tomahawk">

<ui:composition	template="/layouts/application.xhtml">
	<ui:param name="bean" value="#{ManageMailer}" />
	
	<ui:define name="breadcrumb_content">
		<h:outputLink value="#" styleClass="active">
			<h:outputText value="Envio de Mensagens " ></h:outputText>
		</h:outputLink>
	</ui:define>

	<ui:define name="quick_links">
		<ui:include src="/layouts/mailer_links.xhtml" />
	</ui:define>

	<ui:define name="main_content">
		<h:form id="formInserirAlterar">
	       	<div id="form-compl">
					<h:outputLabel value="Enviando de: " ></h:outputLabel>
					<h:outputText   value="#{bean.userFrom.nome} (#{bean.userFrom.email})" />
					
					<br />
					<br />

					<fieldset id="dados">
					<span class="warning">* os itens marcados são obrigatórios</span>
						<ul>
							<li>
								<h:outputLabel value="Para:" ><span class="required">*</span></h:outputLabel>
								<h:inputText   value="#{bean.userTo}"/>
							</li>
							<li>
								<h:outputLabel value="Assunto:" ><span class="required">*</span></h:outputLabel>
								<h:inputText   value="#{bean.assunto}"/>
							</li>
							<li>
								<h:outputLabel value="Mensagem:" ><span class="required">*</span></h:outputLabel>
								<h:inputTextarea   value="#{bean.mensagem}" rows="10"/>
							</li>
						</ul>
					</fieldset>
			</div>
			
			<h:commandButton styleClass="enviar" action="#{bean.enviar}" value="Enviar"  
					></h:commandButton>
		</h:form>
		
	</ui:define>
	
	<ui:define name="MODAL_PANEL">
	</ui:define>
</ui:composition>

</html>
